import { ResType } from "./ResDefine";

/**
 * 管理资源的加载情况
 */
export class LoadItem {
    //资源id
    protected url: string;
    //资源类型
    protected type: ResType;

    protected bundle: string;

    constructor(url: string, type: ResType, bundle: string) {
        this.url = url;
        this.type = type;
        this.bundle = bundle;
    }

    getBundle() {
        return this.bundle;
    }

    getUrl() {
        return this.url;
    }

    getType() {
        return this.type;
    }

}